package toman.jpa;

import toman.Index;
import toman.orm.TO;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: 30.4.11
 * Time: 20:57
 * To change this template use File | Settings | File Templates.
 */
@TO(
    id = "a.name=:name",
    read = "select a.name, a.created from Album a",
    write = "update Album a set a.name=:name")
public class SimpleAlbumTO {

    @Index(0)
    private String name;

    @Index(1)
    private Date created;

    public String getName() {
        return name;
    }

    public void setName(String albumName) {
        this.name = albumName;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }
}
